import turtle;

def fun():
    n = input("please input a integer:\n");
    m = "=" * (int(n) // 5);
    print("{:>3}%@{:<20}".format(n,m));
'''fun();'''

def fun2():
    s = "学而时习之，不亦说乎？有朋自远方来，不亦乐乎？\
人不知而不愠，不亦君子乎？"
    m = s.count("，") + s.count("？");
    n = len(s) - m;
    print("字符数为{},标点符号数位{}".format(n,m));
    
'''fun2();'''

def fun3():
    sum = 0;
    N = int(input("请输入一个整数:"));
    for i in range(N, N + 100):
        if i % 2 != 0:
            sum += i;
    print(sum);
'''fun3();'''

def fun4():
    for i in range(6):
        turtle.fd(100);
        turtle.left(360 / 6);
'''fun4();'''

def getInput():
    try:
        n = input("请输入一个整数:");
        while eval(n) != int(float(n)):
            n = input("请输入一个整数:");
    except:
        return getInput();
    return n;

print(getInput());
